﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Runtime.InteropServices;

namespace DTO
{
    public class ThongTinDTO
    {
        private int loaichuyen;
        private int diadiemdi;
        private int diadiemden;
        private int loaighe;

        private string hoten;
        private int gioitinh;
        private string cmnd;
        private string diachi;
        private string dienthoai;
        private int doituong;
        private int giave;
        private int machuyentau;
        private DateTime ngayden;
        private int vetapthe;
        private int soluongnguoi;

        private int mave;
        private int tinhtrangve;
        private int hientrang;
        private string lydo;

        public int LoaiChuyen
        {
            get { return loaichuyen; }
            set { loaichuyen = value; }
        }
        public int DiaDiemDi
        {
            get { return diadiemdi; }
            set { diadiemdi = value; }
        }
        public int DiaDiemDen
        {
            get { return diadiemden; }
            set { diadiemden = value; }
        }
        public int LoaiGhe
        {
            get { return loaighe; }
            set { loaighe = value; }
        }

        public string HoTen
        {
            get { return hoten; }
            set { hoten = value; }
        }
        public int GioiTinh
        {
            get { return gioitinh; }
            set { gioitinh = value; }
        }
        public string CMND
        {
            get { return cmnd; }
            set { cmnd = value; }
        }
        public string DiaChi
        {
            get { return diachi; }
            set { diachi = value; }
        }
        public string DienThoai
        {
            get { return dienthoai; }
            set { dienthoai = value; }
        }
        public int DoiTuong
        {
            get { return doituong; }
            set { doituong = value; }
        }
        public int GiaVe
        {
            get { return giave; }
            set { giave = value; }
        }
        public int MaChuyenTau
        {
            get { return machuyentau; }
            set { machuyentau = value; }
        }
        public DateTime NgayDen
        {
            get { return ngayden; }
            set { ngayden = value; }
        }
        public int VeTapThe
        {
            get { return vetapthe; }
            set { vetapthe = value; }
        }
        public int SoLuongNguoi
        {
            get { return soluongnguoi; }
            set { soluongnguoi = value; }
        }
        public int MaVe
        {
            get { return mave; }
            set { mave = value; }
        }
        public int TinhTrangVe
        {
            get { return tinhtrangve; }
            set { tinhtrangve = value; }
        }
        public int HienTrang
        {
            get { return hientrang; }
            set { hientrang = value; }
        }
        public string LyDo
        {
            get { return lydo; }
            set { lydo = value; }
        }

        public void ThongTinChuyenTau(int _loaichuyen, int _diadiemdi, int _diadiemden,int _loaighe)
        {
            loaichuyen = _loaichuyen;
            diadiemdi = _diadiemdi;
            diadiemden = _diadiemden;
            loaighe = _loaighe;
        }
        public void DanhSachCacNoiDiQua(int _diadiemdi, int _diadiemden)
        {
            diadiemdi = _diadiemdi;
            diadiemden = _diadiemden;
        }

        public void ThongTinThanhToan(string _hoten, int _gioitinh, string _cmnd, string _diachi, string _dienthoai,
            int _doituong, int _giave, int _machuyentau, DateTime _ngayden, int _vetapthe, int _soluongnguoi,int _loaighe,int _tinhtrangve)
        {
            hoten = _hoten;
            gioitinh = _gioitinh;
            cmnd = _cmnd;
            diachi = _diachi;
            dienthoai = _dienthoai;
            doituong = _doituong;
            giave = _giave;
            machuyentau = _machuyentau;
            ngayden = _ngayden;
            vetapthe = _vetapthe;
            soluongnguoi = _soluongnguoi;
            loaighe = _loaighe;
            tinhtrangve = _tinhtrangve;
        }

        public void ThemTraDoiVe(int _mave,string _lydo,int _hientrang,int _tinhtrangve)
        {
            mave = _mave;
            lydo = _lydo;
            hientrang = _hientrang;
            tinhtrangve = _tinhtrangve;
        }

        public void CapNhatHienTrangVe(int _mave, int _hientrang)
        {
            mave = _mave;
            hientrang = _hientrang;
        }
    }
}
